<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .father {
      /* 这些属性，子可以继承父的 */
      color: red;

      font-style: italic;
      font-weight: 700;
      font-size: 30px;
      font-family: 楷体;

      text-indent: 2em;
      text-align: center;

      line-height: 100px;

      /* 常见的以下属性子无法继承 */
      width: 300px;
      height: 300px;
      background-color: skyblue;
    }
  </style>
</head>
<body>
  <div class="father">
    父亲
    <div class="son">
      儿子
    </div>
  </div>
</body>
</html>